﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace AlumniProject
{
    public class TaiKhoan
    {
        CryptorEngine ce = new CryptorEngine();
        public string TenDangNhap { get; set; }
        public string MatKhau { get; set; }
        public string Email { get; set; }
        public DateTime NgayThamGia { get; set; }
        public string CapBac { get; set; }
        public int MaCsv { get; set; }
        public string MaDv { get; set; }
        public string MaGv { get; set; }
        public int TrangThai { get; set; }
        public bool IsAdmin { get; set; }
        public string Description { get; set; }
        public string Name { get; set; }
        public TaiKhoan(string tendn, string matkhau)
        {
            this.TenDangNhap = tendn;
            this.MatKhau = ce.Encrypt(matkhau,true);
        }

        public TaiKhoan()
        {
            
        }
    }
}